﻿using BBD_DAL.DAO;

namespace BBD_DAL.Core
{
	public class DataContext
	{
		public AnswerDao AnswerDao {get; internal set;}
		public CityDao CityDao { get; internal set; }
		public QuestionDao QuestionDao { get; internal set; }
		public QuestionnaireDao QuestionnaireDao { get; internal set; }
		public RegionsDao RegionsDao { get; internal set; }
		public SchoolDao SchoolDao { get; internal set; }
		public StateDao StateDao { get; internal set; }

		public DataContext(string connectionString)
		{
			this.AnswerDao = new AnswerDao(connectionString);
			this.CityDao = new CityDao(connectionString);
			this.QuestionDao = new QuestionDao(connectionString);
			this.QuestionnaireDao = new QuestionnaireDao(connectionString);
			this.RegionsDao = new RegionsDao(connectionString);
			this.SchoolDao = new SchoolDao(connectionString);
			this.StateDao = new StateDao(connectionString);
		}
	}
}
